package com.java2302.manufacturing.dto;

import com.java2302.manufacturing.entity.SysPermission;
import com.java2302.manufacturing.entity.SysUser;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class UserDTO extends SysUser {
    List<SysPermission> sysPermission;

    @Override
    public String toString() {
        return "SysUserDto{" +
                "sysPermission=" + sysPermission.toString() +
                "SysUser=" + super.toString() +
                '}';
    }
}
